export default {
    namespace: true,
    state: {
        routes: [
            {
                iconPath: 'home',
                selectedIconPath: 'home-fill',
                text: '首页',
                count: 0,
                isDot: true,
                customIcon: false,
                pagePath: '/pages/home/index',
            },
            {
                iconPath: 'order',
                selectedIconPath: 'order-fill',
                text: '统计',
                customIcon: false,
                pagePath: '/pages/statistics/index',
            },
            {
                iconPath: 'account',
                selectedIconPath: 'account-fill',
                text: '我的',
                count: 0,
                isDot: false,
                customIcon: false,
                pagePath: '/pages/account/index',
            },
        ],
        current: 0,
    },
    mutations: {
        setCurrent(state, payload) {
            state.current = payload.val
        },
    },
}
